home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / 106_01.zip / CSYM.LIB < prev    next >
Text File  |  1993-06-26  |  2KB  |  58 lines

  1. /*                csym.lib
  2.  
  3.     Copyright (C) 1980, M J Maney
  4.  
  5.     First created    3/1/80
  6.     Last revised    3/29/80 17:00
  7.  
  8.     This file contains some basic definitions that will be needed, or
  9.     at least useful, to the majority of C programs. Some special
  10.     purpose libraries may assume that this library file is to be
  11.     included in a source file when they are to be used.
  12. */
  13.  
  14. /*        Common symbolic constants */
  15. #define    TRUE 1
  16. #define FALSE 0
  17. #define YES 1        /* note YES is the same as TRUE, and NO is the same */
  18. #define NO 0        /* as FALSE. Sometimes one is clearer than the other */
  19. #define OK 1        /* again, the same as TRUE */
  20. #define ERR -1        /* common, though not universal, signal of distress */
  21. #define FF '\014'
  22. #define    NEWLINE '\n'
  23.  
  24. #define INFILE 0    /* symbols for open() in stdlib */
  25. #define OUTFILE 1
  26. #define IOFILE 2
  27.  
  28. #define DSKBUF 134    /* size of buffer needed for getc/putc */
  29. #define IOBUFSIZ 134    /* same as DSKBUF, but I like this name better */
  30. #define FNAMSIZ 16    /* can hold any legal filename with '\0' */
  31.  
  32. #define EOF -1        /* value getc returns on physical end of file */
  33. #define EOT 0x1A    /* value CP/M uses to delimit end of ascii files */
  34.  
  35. /*    DANGER !! the next line contains a character that the Hazeltine
  36.     does not print, but regards as its 'lead-in', so this will look
  37.     sorta funny on the tube !!! ACT prints it ok */
  38. #define #! ~        /* the C complement operator */
  39.  
  40. #define uint unsigned
  41.  
  42.  
  43. /*    Symbols used for stdlib files, collected togethere here to
  44.     ensure system concistency
  45. */
  46. #define    RAM 0
  47. #define    MAXLINE 132
  48. #define    NULL 0
  49.     /* I prefer the name NIL for a pointer to nothing */
  50. #define NIL 0
  51.  
  52. /*    Symbols for IO devices */
  53. #define CONSOLE 1
  54. #define PRINTER 2
  55. #define READER 3
  56. #define PUNCH 4
  57. #define FILE 100
  58.